package cn.edu.sjtu.tooling.service;

import cn.edu.sjtu.tooling.domain.Task;
import cn.edu.sjtu.tooling.dto.StateDTO;
import cn.edu.sjtu.tooling.dto.TaskDTO;

import java.util.List;
import java.util.Map;

public interface ToolingService {
  boolean addTaskToQueue(TaskDTO taskDTO);

  StateDTO queryTaskState(String processId, String taskId);

  StateDTO queryECNState();

  Map<Integer, List<Task>> retTasksPool();
}
